From df32a79d0ea388e76dfece4035d62e8a4947a17a Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 2 Dec 2011 14:22:47 +0100 Subject: [PATCH] AMD IOMMU v2: minor cleanup Despite this array living in an __init function, having such be an automatic variable is rather inefficient in terms of generated code. Signed-off-by: Jan Beulich Acked-by: Wei Wang2 --- xen/drivers/passthrough/amd/iommu_detect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/drivers/passthrough/amd/iommu_detect.c b/xen/drivers/passthrough/amd/iommu_detect.c index 0bf933b110..a57af7ba96 100644 --- a/xen/drivers/passthrough/amd/iommu_detect.c +++ b/xen/drivers/passthrough/amd/iommu_detect.c @@ -66,7 +66,7 @@ void __init get_iommu_features(struct amd_iommu *iommu) { u32 low, high; int i = 0 ; - char * feature_str[] = { + static const char *__initdata feature_str[] = { "- Prefetch Pages Command", "- Peripheral Page Service Request", "- X2APIC Supported", -- 2.30.2